import request from '@/utils/request'

// 音乐列表
export function apiMusicList(params) {
    return request({
        url: '/cmsMusic/list',
        method: 'get',
        params
    })
}

// 新增音乐
export function apiMusicAdd(data) {
    return request({
        url: '/cmsMusic/add',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 编辑音乐
export function apiMusicEdit(data) {
    return request({
        url: '/cmsMusic/update',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 启用/禁用音乐
export function apiMusicEnable(data) {
    return request({
        url: '/cmsMusic/enable',
        method: 'post',
        data
    })
}

// 删除音乐
export function apiMusicDel(params) {
    return request({
        url: '/cmsMusic/delete',
        method: 'get',
        params
    })
}